import json

# Python 字典类型转换为 JSON 对象
# data = {
#     'no': 1,
#     'name': 'Runoob',
#     'url': 'http://www.runoob.com'
# }

# data ={"name":"wsl","age":25}


# json_str = json.dumps(data)
# print("Python 原始数据：", repr(data))
# print("JSON 对象：", json_str)


# 将 JSON 对象转换为 Python 字典
# data2 = json.loads(data)
# print(type(data2))
# print ("data2['name']: ", data2['name'])
# print ("data2['age']: ", data2['age'])


import sys

def func(data):
    try:
        if( data['idTwoZ']["message"]== "一致"):
            return "身份证信息一致"
        else:
            return "身份证信息不一致"
    except:
        return "未知"


if __name__ == '__main__':
    # s = '{"name":"张三","age":18}'
    # print(type(s))
    # result = json.loads(s)
    # print(result)

    jsonStr = sys.argv[1]
    result = json.loads(jsonStr)
    # print("data2['name']: ", result['name'])
    # print("data2['age']: ", result['age'])
    # print(10/0)
    print(func(data=result))
